package com.np.moneylover;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Main extends Activity implements OnClickListener {

	Button btnthemgiaodich = null;
	Button btnsochitieu = null;
	Button btnsono = null;
	Button btnthongke = null;
	Button btnkehoach = null;
	Button btncongcu = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.activity_money_lover);
		btnthemgiaodich = (Button) findViewById(R.id.btnthemgiaodich);
		btnsochitieu = (Button) findViewById(R.id.btnsochitieu);
		btnsono = (Button) findViewById(R.id.btnsono);
		btnthongke = (Button) findViewById(R.id.btnthongke);
		btnkehoach = (Button) findViewById(R.id.btnkehoach);
		btncongcu = (Button) findViewById(R.id.btncongcu);
		btnthemgiaodich.setOnClickListener(this);
		btnsochitieu.setOnClickListener(this);
		btnsono.setOnClickListener(this);
		btnthongke.setOnClickListener(this);
		btnkehoach.setOnClickListener(this);
		btncongcu.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		int id = v.getId();
		switch (id) {
		case R.id.btnthemgiaodich:
             Intent I= new Intent(this,GiaoDich.class);
             startActivity(I);
			break;
		case R.id.btnsochitieu:
			 Intent soct= new Intent(this,SoChiTieu.class);
             startActivity(soct);
			break;
		case R.id.btnsono:
			 Intent sono= new Intent(this,SoNo.class);
             startActivity(sono);
			break;
		case R.id.btnthongke:
           //  Intent thongke= new Intent(this,)
			break;
		case R.id.btnkehoach:

			break;
		case R.id.btncongcu:

			break;

		default:
			break;
		}
	}

}
